#!/usr/bin/env python
# -*- coding: UTF-8 -*-
'''=================================================
@Project -> File   ：CS-API -> setup.py
@IDE    ：PyCharm
@Author ：Json
@Date   ：2025/7/9 16:58
@Desc   ：
=================================================='''

from setuptools import setup, find_packages

def parse_requirements(filename):
    with open(filename, encoding="utf-8") as f:
        return [line.strip() for line in f if line.strip() and not line.startswith("#")]


setup(
    name="cs-api",  # 包名称
    version="1.0",  # 版本号
    author="Jason",  # 作者
    author_email="877362946@qq.com",  # 作者邮箱
    description="A short description",  # 简短描述
    long_description='----------',
    long_description_content_type="text/markdown",
    packages=find_packages(exclude=["test", "test.*"]),  # 排除 test 目录和所有 test.* 模块
    install_requires=parse_requirements("requirements.txt"),
    classifiers=[  # 分类信息
        "Programming Language :: Python :: 3",
        "License :: OSI Approved :: MIT License",
        "Operating System :: OS Independent",
    ],
    python_requires=">=3.6",  # Python版本要求
)
